package com.dl7.player.utils;

import ohos.app.Context;
import ohos.global.resource.ResourceManager;

import java.lang.reflect.Method;

/**
 * Created by long on 2016/10/10.
 * 导航栏工具类
 */
public final class NavUtils {

    private NavUtils() {
        throw new RuntimeException("NavUtils cannot be initialized!");
    }

    /**
     * 获取底部导航栏高度
     *
     * @param activity
     * @return
     */
    public static int getNavigationBarHeight(Context activity) {
        if (!checkDeviceHasNavigationBar(activity)) {
            return 0;
        }
        ResourceManager resourceManager = activity.getResourceManager();
        return 0;
    }

    /**
     * 检测是否有虚拟键
     *
     * @param context
     * @return
     */
    public static boolean checkDeviceHasNavigationBar(Context context) {
        boolean hasNavigationBar = false;
        return hasNavigationBar;

    }
}
